﻿using Server.pages;
using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Server
{
    public partial class FrmMain : UIHeaderAsideMainFooterFrame
    {
        public FrmMain()
        {
            InitializeComponent();
            //设置关联
            Aside.TabControl = MainTabControl;

            //增加页面到Main
            AddPage(new FrmSinger(), 1001);
            AddPage(new FrmSong(), 1002);
            AddPage(new FrmPath(), 1003);
            AddPage(new FrmAbout2(), 1004);

            //设置Header节点索引
            Aside.CreateNode("歌手管理", 1001);
            Aside.CreateNode("歌曲管理", 1002);
            Aside.CreateNode("资源路径", 1003);
            Aside.CreateNode("关于", 1004);

            //显示默认界面
            Aside.SelectFirst();
        }

        private void uiButton1_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}
